import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/assets/style/common.css'
import directives from '@/directive'

let app = createApp(App);

app.use(router).use(store).use(ElementPlus);
for (let key in directives){
    console.log(key)
    app.directive(key, directives[key]);
}

// app.directive('focus',{
//     mounted(el){
//         el.focus();
//     }
// })


app.mount('#app')
